package cn.south.campus.business.service;

import cn.south.campus.business.model.entity.Goods;
import cn.south.campus.business.model.req.GoodsReq;
import cn.south.campus.business.model.vo.GoodsVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 二手商品表 服务类
 * </p>
 *
 * @author chow
 * @since 2024-11-13
 */
public interface GoodsService extends IService<Goods> {

    void publishGoods(GoodsVo goodsVo);

    void changeStatus(Long goodsId, Integer status);

    void deleteGoods(Long goodsId);

    GoodsVo getMeGoods(Long goodsId);

    void updateGoods(GoodsVo goodsVo);

    IPage<GoodsVo> pageQuery(GoodsReq req);

    GoodsVo getGoods(Long goodsId);

    IPage<GoodsVo> pageQueryMe(GoodsReq req);
}
